package com.xsz.pda.ui

import android.content.Intent
import com.xsz.pda.data.bean.TicketInfo
import com.xsz.pda.event.EmqConn


const val MODE_CHECK_TICKET = 1
const val MODE_RESET_TICKET = 2
interface MainContract {

    interface View{
        fun showTicketType(type: String)
        fun showMsg(msg: String, type: Int)
        fun showCheckCount(todayCount: String, allCount: String)
        fun showTicket(ticket: TicketInfo, lastInTime: String, lastInGroup: String, msg: String, type: Int)

        fun showGroupName(groupName: String)

        fun showNetStatus(event: EmqConn)

    }

    interface Presenter{

        fun init()

        fun release()

        fun onResume()

        fun parseNfc(intent: Intent)

        fun checkIdCard(idNumber: String,name:String)
    }
}